package com.hx.vending.service;

import com.hx.vending.bean.Field;
import com.hx.vending.util.Msg;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface IFieldService {

    Field selectByPrimary(@Param("field") Field field);

    List<Field> selectByExample(@Param("field") Field field);

    int updateByPrimaryKeySelective(@Param("field") Field field);

    int insertSelective(@Param("field") Field field);

    int deleteByPrimaryKey(@Param("fieldId") Integer fieldId);

    Msg getFieldListByUserId(Map<String,Object> paramMap,Integer userId,Integer[] integers);

    List<Field> selectFieldByUserId(Integer userId);

    Integer[] selectIdByUserId(Integer userId);

    List<Field> selectFieldById(Integer[] integers);

    List<Field> selectFieldByIdPage(Integer[] integers,Integer pageStart,Integer pageSize);

}
